package com.itic.web.ro;

public class Sms {

	private String code;
	private long expires_in;
	
	public Sms(String code, long expires_in) {
		super();
		this.code = code;
		this.expires_in = expires_in;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public long getExpires_in() {
		return expires_in;
	}

	public void setExpires_in(long expires_in) {
		this.expires_in = expires_in;
	}
	
	public boolean isExpires() {

		if (System.currentTimeMillis() >= expires_in) {
			return true;
		}

		return false;
	}
}
